<?php

class FeedsCommentsTb extends \Phalcon\Mvc\Model
{

    /**
     *
     * @var integer
     */
    public $id;

    /**
     *
     * @var integer
     */
    public $feeds_id;

    /**
     *
     * @var integer
     */
    public $user_id;

    /**
     *
     * @var integer
     */
    public $receiver_id;

    /**
     *
     * @var string
     */
    public $date_created;

    /**
     *
     * @var string
     */
    public $date_updated;

    /**
     *
     * @var integer
     */
    public $edited;

    /**
     *
     * @var string
     */
    public $comment_container;

    /**
     * Independent Column Mapping.
     */
    public function beforeValidationOnCreate()
    {
        $this->date_created = CURR_DATE;
        $this->edited = 0;
        
    }
    public function beforeValidationOnUpdate()
    {
        $this->date_updated = CURR_DATE;
    }
    public function columnMap()
    {
        return array(
            'id' => 'id', 
            'feeds_id' => 'feeds_id', 
            'user_id' => 'user_id', 
            'receiver_id' => 'receiver_id', 
            'date_created' => 'date_created', 
            'date_updated' => 'date_updated', 
            'edited' => 'edited', 
            'comment_container' => 'comment_container'
        );
    }

}
